<%=
if attachment.is_a? CommentRef
  render :partial => 'shared/comment_ref', :locals => { :comment => attachment.comment }
elsif attachment.is_a? IssueRef
  render :partial => 'shared/issue_ref', :locals => { :issue => attachment.issue }
elsif attachment.is_a? Image
  render :partial => 'shared/attachment_image', :locals => { :attachment => attachment }
elsif attachment.is_a? PatchFile
  render :partial => 'shared/attachment_patch_file', :locals => { :attachment => attachment }
elsif attachment.is_a? GenericFile
  render :partial => 'shared/attachment_generic_file', :locals => { :attachment => attachment }
else
  'could not match the class of this attachment<br />'
end
%>
